|
In computer science, bootstrapping is the process of writing a compiler (or assembler) in the source programming language which it is intended to compile. Applying this technique leads to a self-hosting compiler. Many compilers for many programming languages are bootstrapped, including compilers for BASIC, ALGOL, C, D, Pascal, PL/I, Factor, Haskell, Modula-2, Oberon, OCaml, Common Lisp, Scheme, Go, Java, Rust, Python, Scala, Nim, Eiffel, and more. ==Advantages== Bootstrapping a compiler has the following advantages:〔Compilers and Compiler Generators: An Introduction With C++. Patrick D. Terry 1997. International Thomson Computer Press. ISBN 1-85032-298-8〕 〔 "Compiler Construction and Bootstrapping" by P.D.Terry 2000. (HTML ). (PDF ). (HTML ). 〕 * it is a non-trivial test of the language being compiled. * compiler developers only need to know the language being compiled. * compiler development can be done in the higher level language being compiled. * improvements to the compiler's back-end improve not only general purpose programs but also the compiler itself. * it is a comprehensive consistency check as it should be able to reproduce its own object code. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Bootstrapping (compilers)」の詳細全文を読む スポンサード リンク
|